
#include <stdlib.h>
#include <string.h>

#include <xdc/std.h>
#include <ti/sdo/dmai/Buffer.h>

#include "dmai_buffer.h"

HANDLE
buffer_create (unsigned int size)
{
	Buffer_Attrs bAttrs = Buffer_Attrs_DEFAULT;
	return Buffer_create(size, &bAttrs);
}

int
buffer_delete (HANDLE obj)
{
	return Buffer_delete(obj);
}

char *
buffer_getUserPtr(HANDLE obj)
{
	return (char *)Buffer_getUserPtr(obj);
}

void
buffer_setNumBytesUsed(HANDLE obj, uint32_t numBytes)
{
	Buffer_setNumBytesUsed (obj, numBytes);
}

uint32_t
buffer_getNumBytesUsed(HANDLE obj)
{
	return Buffer_getNumBytesUsed(obj);
}

uint32_t
buffer_getSize(HANDLE obj)
{
	return Buffer_getSize(obj);
}

void
buffer_print(HANDLE obj)
{
	Buffer_print(obj);
}
